package com.ibeeking.found.common.enums;

/**
 * @Author ibeeking
 * @Date: 2021-01-05 19:15
 * @Description:  条件 enum
 */
public enum ConditionTypeEnum {
    /**
     * 选中的
     */
    SELECTED_RESULT(1),
    FILTER_RESULT(2);
    private Integer value;

    ConditionTypeEnum(int value) {
        this.value = value;
    }


    public Integer getValue() {
        return value;
    }

    public static ConditionTypeEnum getEnum(Integer value) {
        for (ConditionTypeEnum enumObj : values()) {
            if (enumObj.getValue().equals(value)) {
                return enumObj;
            }
        }
        return null;
    }
}
